<?php
// 主题配置
$theme = [
    'name' => 'kuaidi100',
    'version' => '1.0.0',
    'colors' => [
        'primary' => '#ff6b00',  // 快递100主色调
        'secondary' => '#6c757d',
        'success' => '#198754',
        'danger' => '#dc3545',
        'warning' => '#ffc107',
        'info' => '#0dcaf0',
        'light' => '#f8f9fa',
        'dark' => '#333333',
        'border' => '#e9ecef',
        'background' => '#f5f5f5'
    ],
    'fonts' => [
        'family' => '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
        'size' => '16px'
    ],
    'breakpoints' => [
        'sm' => '576px',
        'md' => '768px',
        'lg' => '992px',
        'xl' => '1200px'
    ]
];

// 获取主题配置
function get_theme_config($key = null) {
    global $theme;
    if ($key === null) {
        return $theme;
    }
    return $theme[$key] ?? null;
}

// 获取主题颜色
function get_theme_color($color) {
    global $theme;
    return $theme['colors'][$color] ?? '#000000';
}
?> 